home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / GENCSRC.ZIP / WHILE.C < prev    next >
C/C++ Source or Header  |  1987-11-21  |  266b  |  14 lines

  1.                                          /* Chapter 3 - Program 1 */
  2. /* This is an example of a "while" loop */
  3.  
  4. main()
  5. {
  6. int count;
  7.  
  8.    count = 0;
  9.    while (count < 6) {
  10.       printf("The value of count is %d\n",count);
  11.       count = count + 1;
  12.    }
  13. }
  14.